#include "../HLoginInstance.h"
#include "../HLoginPanel.h"
#include "../include/HGlobalVariable.h"
#include "../include/HResolutionConfigResolver.h"
#include "../include/StdAfx.h"
HLoginInstance::HLoginInstance()
{
    HResolutionConfigResolver::dealResolutionConfigInfo(QApplication::applicationDirPath() + XMLRELATIONPATH + "resolutionConfig/mainConfig.xml");
}


HLoginInstance::~HLoginInstance()
{

}


QDeclarativeView *HLoginInstance::createWidget()
{
    m_pLoginPanel = new HLoginPanel();
    return m_pLoginPanel;
}

void HLoginInstance::setAppPath(QString strAppPath)
{
    g_strAppPath = strAppPath;
}

void HLoginInstance::setWarning(QString strWarning)
{
	m_pLoginPanel->setWarning(strWarning);
}

void HLoginInstance::setLoginInfo(QStringList strlstLoginInfo)
{
	m_pLoginPanel->setLoginInfo(strlstLoginInfo);
}
